Skip to content

Conversation

@claudia99503
Copy link
Member

@claudia99503 claudia99503 commented Dec 5, 2025

📝 변경 사항

TabNavigation 컴포넌트 추가

  • 쿼리 파라미터 기반 탭 네비게이션 컴포넌트 구현
  • 2개 또는 3개 탭 지원
  • basePath, paramName 커스터마이징 가능
  • 테스트 및 Storybook 작성 완료

Button 컴포넌트 확장

  • xs 사이즈 추가 (h-10, 40px, radius: 12px)
  • leave variant 추가 (모임 탈퇴 버튼용)
  • chat variant 추가 (채팅 입장 버튼용)

Card 컴포넌트 확장

  • leaveAndChatActions prop 추가 (조건부 버튼 렌더링)
  • 모임 탈퇴 및 채팅 입장 버튼 추가

스케줄러 페이지 구현

  • 쿼리 파라미터 기반 탭 전환 (/schedule?tab=current)
  • Route Groups (components)로 탭별 컴포넌트 분리
    • current.tsx - 현재 모임
    • my.tsx - 나의 모임
    • history.tsx - 모임 이력

🔗 관련 이슈

Closes #67


🧪 테스트 방법

  • 수동 테스트 검증(로컬 환경)

    • /schedule, /schedule?tab=current, /schedule?tab=my, /schedule?tab=history 접근 확인
    • 탭 클릭 시 쿼리 파라미터 변경 및 컨텐츠 전환 확인
  • 유닛 테스트 검증

    • pnpm test tab-navigation --coverage
    • TabNavigation 쿼리 파라미터 기반 테스트
  • 통합 테스트 검증

    • pnpm storybook → Shared/TabNavigation
    • 2개/3개 탭, 각 활성화 상태 확인

📸 스크린샷 (선택)

image

📋 체크리스트

  • 관련 문서를 업데이트했습니다 (필요한 경우)

  • 테스트를 추가/수정했습니다 (필요한 경우)

  • Breaking change가 있다면 명시했습니다


💬 추가 코멘트

TabNavigation 사용법 (cc. @wooktori )

기본 사용:

import { TabNavigation } from '@/components/shared';

const tabs = [
  { label: '탭1', value: 'tab1' },
  { label: '탭2', value: 'tab2' },
];

<TabNavigation basePath='/your-page' tabs={tabs} />

페이지 구현:

'use client';

import { useSearchParams } from 'next/navigation';

export default function YourPage() {
  const searchParams = useSearchParams();
  const tab = searchParams.get('tab') || 'tab1';  // 디폴트

  return (
    <>
      <TabNavigation basePath='/your-page' tabs={tabs} />
      {tab === 'tab1' && <Tab1Component />}
      {tab === 'tab2' && <Tab2Component />}
    </>
  );
}

URL 예시:

  • /schedule → 현재 모임 (디폴트)
  • /schedule?tab=my → 나의 모임
  • /schedule?tab=history → 모임 이력

참고

  • 쿼리 파라미터로 탭 상태 관리
  • 2개 또는 3개 탭 지원
  • paramName 커스터마이징 가능 (기본: 'tab')

CodeRabbit Review는 자동으로 실행되지 않습니다.

Review를 실행하려면 comment에 아래와 같이 작성해주세요

@coderabbitai review

@claudia99503 claudia99503 self-assigned this Dec 5, 2025
@claudia99503 claudia99503 added the Ready For Review! 리뷰 받을 준비가 되었습니다. label Dec 5, 2025
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 5, 2025

Important

Review skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch minseo-feat/schedule-card

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link

github-actions bot commented Dec 5, 2025

🎨 Storybook Report

Story가 변경되었습니다

Chromatic에서 비주얼 변경사항을 확인하세요.

Status Storybook Build Log Updated (UTC)
✅ Ready View Storybook View Build 2025-12-05 07:32:41

@github-actions github-actions bot requested a review from HopeFullee December 5, 2025 00:11
@github-actions
Copy link

github-actions bot commented Dec 5, 2025

📊 Coverage Report

Status Build Log Updated (UTC)
✅ Ready View Build 2025-12-05 07:31:34

📈 #82main에 병합하면 coverage가 3.67% 증가합니다.

Coverage 요약

@@             Coverage Diff             @@
##             main      #82       +/-   ##
===========================================
+ Coverage   33.18%   36.85%    +3.67%     
===========================================
  Files          80       80         0     
  Lines        2429     2491       +62     
  Branches      162      158        -4     
===========================================
+ Hits          806      918      +112     
- Misses       1623     1573       -50     

영향받은 파일

파일 Coverage 변화
/home/runner/work/WeGo_FrontEnd/WeGo_FrontEnd/src/components/shared/card/index.tsx 95.97% (-4.03%) ⬇️
/home/runner/work/WeGo_FrontEnd/WeGo_FrontEnd/src/components/ui/index.ts 100.00% (+100.00%) ⬆️
/home/runner/work/WeGo_FrontEnd/WeGo_FrontEnd/src/components/ui/hint/index.tsx 41.17% (+41.17%) ⬆️
/home/runner/work/WeGo_FrontEnd/WeGo_FrontEnd/src/components/ui/input/index.tsx 58.00% (+58.00%) ⬆️
/home/runner/work/WeGo_FrontEnd/WeGo_FrontEnd/src/components/ui/label/index.tsx 36.84% (+36.84%) ⬆️

@github-actions
Copy link

github-actions bot commented Dec 5, 2025

🚀 PR Preview Report

Build가 성공적으로 완료되었습니다.

Preview에서 변경사항을 확인하세요.

Status Preview Build Log Updated (UTC)
✅ Ready Visit Preview View Logs 2025-12-05 07:32:51

Copy link
Member

@HopeFullee HopeFullee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

굿또 자부 나이수 자부 스바라시 자부

}: CardParticipationRowProps) => {
return (
<div className='mt-[14px] flex items-center'>
<div className='mt-3 flex h-[18px] items-center'>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

위 훈수

Suggested change
<div className='mt-3 flex h-[18px] items-center'>
<div className='mt-3 flex h-4.5 items-center'>

아래 훈수

<CardTags tags={cardTags} />

<div className='mt-3 flex flex-col gap-1'>
<div className='mt-[13px] flex flex-col gap-1'>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

훈수

Suggested change
<div className='mt-[13px] flex flex-col gap-1'>
<div className='mt-3.25 flex flex-col gap-1'>

Copy link
Contributor

@wooktori wooktori Dec 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

탭이 스크롤을 내려도 화면 상단에 고정되도록 하면 어떨까요?
팔로워가 많아져서 스크롤을 내리다가 채팅 탭으로 전환하고 싶을 때 다시 스크롤을 올려야 하는 불편함이 있을 것 같아 말씀드립니다!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오 알려주셔서 감사합니다 ~~

@claudia99503 claudia99503 merged commit a6993ac into main Dec 5, 2025
5 of 6 checks passed
@claudia99503 claudia99503 deleted the minseo-feat/schedule-card branch December 5, 2025 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ready For Review! 리뷰 받을 준비가 되었습니다.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[컴포넌트] 스케줄러 카드

4 participants